package com.ayoka.adapter;

import com.ayoka.R;
import com.jcp.baselibrary.brvah.BaseQuickAdapter;
import com.jcp.baselibrary.brvah.BaseViewHolder;

import java.util.List;

/**
 * Created by jinchunping on 2018/4/11.
 */

public class MeditationCollectionAdapter extends BaseQuickAdapter<String, BaseViewHolder> {

    public MeditationCollectionAdapter() {
        super(R.layout.item_meditation_collection, null);
    }

    @Override
    protected void convert(BaseViewHolder holder, String item) {
        holder.setText(R.id.tv_course_name, "Title")
                .setText(R.id.tv_sub_title, "SubTitle")
                .setVisible(R.id.tv_sub_title, true)
                .addOnClickListener(R.id.tv_play);
    }
}
